package com.sjd.mall.domain.dto.account;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

/**
 * @ProjectName: sjd
 * @Package: com.sjd.mall.domain.dto.account
 * @ClassName: BasePageHelperDTO
 * @Author: genglong
 * @Description: 分页请求
 * @Date: 2022/1/18 17:33
 * @Version: 1.0
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
public class BasePageHelperDTO {
    /**
     * 页码，从1开始
     */
    @NotNull(message = "页码不能为空")
    private Integer pageNum;

    /**
     * 每页显示数量
     */
    @NotNull(message = "每页显示数量不能为空")
    private Integer pageSize;
}
